//
//  Record.h
//  BiologyLibrary
//
//  Created by 朱进 on 16/7/2.
//  Copyright © 2016年 youxh. All rights reserved.
//

#import "JKDBModel.h"

static const NSString * KEY_RECORD_QUESTION  = @"question";
//问题类型 1:普通类型即问题、答案 2:选择题类型
static const NSString * KEY_RECORD_TYPE  = @"type";
static const NSString * KEY_RECORD_OPTION  = @"option";
static const NSString * KEY_RECORD_ANSWER  = @"answer";

static const NSString * TYPE_QUESTION_DEFAULT  = @"1";
static const NSString * TYPE_QUESTION_SELECT = @"2";

static const NSInteger  TYPE_RECORD_XUEYANGBEN = 1;
static const NSInteger  TYPE_RECORD_SHITIZHONGNIU = 2;
static const NSInteger  TYPE_RECORD_NANGXINGZHONGNIU = 3;
static const NSInteger  TYPE_RECORD_XUEJIANGYANGBEN = 4;
static const NSInteger  TYPE_RECORD_XUEQINGYANGBEN = 5;

static const NSInteger  STATUS_RECORD_NEW = 1;
static const NSInteger  STATUS_RECORD_SAVED = 2;
static const NSInteger  STATUS_RECORD_FINISHED = 3;


@interface Record : JKDBModel{

    NSMutableDictionary *detailDict;
    NSArray *addressList;
    NSArray *cellList;
    NSArray *nangshenmeList;
    
    NSArray *imagePathList;
}

/** 编号*/
@property (nonatomic, copy)     NSString                    *recordId;
/** 类型 1:血样本收集 2:实体肿瘤组织样本收集 3:囊性肿瘤样本收集 4:血浆样本分离 5:血清样本分离*/
@property (nonatomic, assign)   NSInteger                   type;
/** 名字 */
@property (nonatomic, copy)     NSString                    *name;
/** 总步数 */
@property (nonatomic, assign)   NSInteger                   allStepCount;
/** 纪录详情 */
@property (nonatomic, copy)     NSString                    *recordDetail;
/** 新建时间 */
@property (nonatomic, assign)   double                      creatTime;
/** 保存步数 */
@property (nonatomic, assign)   NSInteger                   savedStepCount;
/** 状态  0: 新建 1:暂存 2:已完成*/
@property (nonatomic, assign)   NSInteger                   recordStatus;
/** 更新时间 */
@property (nonatomic, assign)   double                      updateTime;
/** 其他 */
@property (nonatomic, copy)   NSString                      *otherField;

-(void)setDetailDict:(NSMutableDictionary *)dict;
-(NSMutableDictionary *)getDetailDict;

-(void)setAddressList:(NSArray *)dict;
-(NSArray *)getAddressList;

-(void)setCellList:(NSArray *)dict;
-(NSArray *)getCellList;

-(void)setNangshenmeList:(NSArray *)dict;
-(NSArray *)getNangshenmeList;

-(void)setImagePathList:(NSArray *)dict;
-(NSArray *)getImagePathList;

@end
